package com.celer.flex.service.impl;

import com.celer.flex.entity.TradeLog;
import com.celer.flex.mapper.TradeLogMapper;
import com.celer.flex.service.TradeLogService;
import com.mybatisflex.spring.service.impl.ServiceImpl;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

@RequiredArgsConstructor
@Service
public class TradeLogServiceImpl extends ServiceImpl<TradeLogMapper, TradeLog>
        implements TradeLogService {
    private final TradeLogMapper tradeLogMapper;


    @Override
    public TradeLog saveLog(TradeLog tradeLog) {
        tradeLogMapper.insert(tradeLog);
        return tradeLog;
    }
}
